﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserType.aspx.cs" Inherits="School.Admin.Admin.UserType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	color:#000000;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}</style>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="30" background="../tab/images/tab_05.gif">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="12" height="30">
                            <img src="../tab/images/tab_03.gif" width="12" height="30" />
                        </td>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="46%" valign="middle">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="5%">
                                                    <div align="center">
                                                        <img src="../tab/../tab/images/tb.gif" width="16" height="16" /></div>
                                                </td>
                                                <td width="95%" class="STYLE1">
                                                    <span class="STYLE3">你当前的位置</span>：[我的系统]-[权限列表]
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="16">
                            <img src="../tab/images/tab_07.gif" width="16" height="30" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <p>
                <asp:Button ID="Button1" runat="server" Text="增加" CssClass="button" OnClick="Button1_Click" style=" margin-left:10px;" /></p>
                        <asp:GridView ID="GridView1" GridLines="None" runat="server" CellPadding="2" CellSpacing="0"
                            AutoGenerateColumns="False" AllowPaging="True" PageSize="15" PagerSettings-Mode="Numeric"
                            OnPageIndexChanging="GridView1_PageIndexChanging" Width="88%" Style="margin-top: 10px;
                            margin-left: 10px;" OnRowCommand="GridView1_RowCommand" OnRowEditing="GridView1_RowEditing"
                            ForeColor="#333333" OnRowDataBound="GridView1_RowDataBound">
                            <AlternatingRowStyle BackColor="White" ForeColor="" />
                            <Columns>
                                <asp:TemplateField HeaderText="ID" ItemStyle-Width="10px">
                                    <ItemTemplate>
                                        <asp:Label ID="lbID" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="10px" HorizontalAlign="Center"></ItemStyle>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="名称" DataField="TypeName" ItemStyle-HorizontalAlign="Center">
                                    <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="描述" ItemStyle-Width="70px">
                                    <ItemTemplate>
                                        <asp:Label ID="lbMiaoShu" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="70px" HorizontalAlign="Center"></ItemStyle>
                                </asp:TemplateField>
                                  <asp:TemplateField HeaderText="状态" ItemStyle-Width="15px">
                                    <ItemTemplate>
                                        <asp:Label ID="lbState" runat="server" Text='<%# Bind("State") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="15px" HorizontalAlign="Center"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操 作" ItemStyle-Width="10%">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" CommandName="edit" CommandArgument='<%#Eval("ID")%>'
                                            runat="server" Text="修改" ForeColor="green"></asp:LinkButton>
                                        <asp:LinkButton ID="Button2" CommandName="del" CommandArgument='<%#Eval("ID")%>'
                                            runat="server" Text="删除" ForeColor="green" OnClientClick="return confirm('您确定要删除吗，会影响些用户组的所有人员？');"></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                            <HeaderStyle BackColor="#6c3fd0" Font-Bold="True" ForeColor="#E7E7FF" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" CssClass="pager" />
                            <RowStyle BackColor="#EFEBF7" ForeColor="Black" />
                            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F1F1F1" />
                            <SortedAscendingHeaderStyle BackColor="#594B9C" />
                            <SortedDescendingCellStyle BackColor="#CAC9C9" />
                            <SortedDescendingHeaderStyle BackColor="#33276A" />
                        </asp:GridView>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
